/*
 * @Author: LiZn
 * @Date: 2021-08-19 23:56:12
 * @LastEditTime: 2021-08-23 00:28:20
 * @LastEditors: LiZn
 * @Description: file content
 * @FilePath: \todaynews\src\main.js
 */
import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import '@/assets/icons/index.js'
Vue.config.productionTip = false
import ElementUI  from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './permission'
import Axios from './utils/request';
import LoginMess from '@/utils/loginmessage'
import Permission from '@/directives/permission'
Vue.prototype.$axios = Axios
//注册登录弹窗
Vue.use(LoginMess)
Vue.use(ElementUI )
//自定义角色权限指令
Vue.directive('permission',Permission)
//设置动态元素大小
import './assets/common.css'
//设置移动端的样式
document.documentElement.style.fontSize = document.documentElement.offsetWidth/7.5 + 'px';
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
